package cn.iocoder.yudao.module.pay.bank.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.module.api.infrastructure.DictTypeConstants.COMMON_STATUS;
import static cn.iocoder.yudao.module.api.pay.DictTypeConstants.BANK_CARD_TYPE;

@Schema(description = "银行卡 Response VO")
@Data
public class PayBankRespVO {

    @Schema(description = "唯一编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "4624")
    private Long id;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28644")
    private Long userId;

    @Schema(description = "持卡人姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "山野羡民")
    private String realName;

    @Schema(description = "银行卡类", requiredMode = Schema.RequiredMode.REQUIRED, example = "DC")
    @DictFormat(BANK_CARD_TYPE)
    private String cardType;

    @Schema(description = "银行卡号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6222807102671159575")
    private String cardNo;

    @Schema(description = "银行代码", requiredMode = Schema.RequiredMode.REQUIRED, example = "CCB")
    private String cardCode;

    @Schema(description = "银行名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "中国建设银行")
    private String cardName;

    @Schema(description = "开户银行地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "中国建设银行股份有限公司贵州大学支行")
    private String cardAddress;

    @Schema(description = "银行预留手机号码", example = "15285116029")
    private String cardMobile;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @DictFormat(COMMON_STATUS)
    private Integer status;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}
